package cn.edu.scau.cmi.liuxintong.simpleFactoryMeyhod;

public class MeatFactory {
	public static String getMeet(String option) {
		Meat  meat=null;
		String getMeat = null;
		if(option.compareTo("prok")==0) {
			meat=  new prok();
			getMeat=meat.getMeat();
			}
		else if(option.compareTo("beef")==0) {
	    	meat=  new beef();
	    	getMeat=meat.getMeat();
	    }
		else if(option.compareTo("chicken")==0) {
	    	meat= new chicken();
	    	getMeat=meat.getMeat();
	    }
		else getMeat="没有这种肉";
		return getMeat;	
		}

}
